package com.vivachek.protocol

import com.vivachek.protocol.enums.Flag
import com.vivachek.protocol.enums.SampleEnums
import com.vivachek.protocol.enums.UnitEnums

/**
 * @Author: YCB
 * @Time: 2022/10/9 10:46:32
 * @Email: congbin.yuan@vivachek.com
 * @Description: 检测结果
 */
sealed class BaseResult(
    open val value:String,
    open val unitEnum:UnitEnums,
    open val time:String?,
    open val flag: Flag,
    open val sample:SampleEnums){

    data class Glucose(
        override val value:String, override val unitEnum:UnitEnums,
        override val time:String?, override val flag: Flag, override val sample:SampleEnums) :BaseResult(value, unitEnum, time, flag, sample)


    data class Ketones( override val value:String, override val unitEnum:UnitEnums,
                        override val time:String?, override val flag: Flag, override val sample:SampleEnums) :BaseResult(value, unitEnum, time, flag, sample)

    data class UricAcid( override val value:String, override val unitEnum:UnitEnums,
                         override val time:String?, override val flag: Flag, override val sample:SampleEnums) :BaseResult(value, unitEnum, time, flag, sample)


}